home *** CD-ROM | disk | FTP | other *** search
/ PC Graphics Unleashed / PC Graphics Unleashed.iso / xa / vsa.h < prev    next >
C/C++ Source or Header  |  1994-07-01  |  4KB  |  70 lines

  1. /*.................................. VSA.H ................. 7-2-94 ........*/
  2. /* This file declares the VSA256 Graphics Library functions and global      */
  3. /* parameters used throughout the graphics routines.                        */
  4. /*                                                                          */
  5. /*                               VERSION 3.0                                */
  6. /*                                                                          */
  7. /*         Copyright Spyro Gumas, 1992 - 1994.  All Rights Reserved.        */
  8. /*..........................................................................*/
  9.  
  10. /*..........................................................................*/
  11. /*                    External Function Prototypes                          */
  12. /*..........................................................................*/
  13.  
  14. extern unsigned  far cdecl vsa_set_svga_mode( unsigned );
  15. extern unsigned  far cdecl vsa_get_svga_mode( unsigned far * );
  16. extern unsigned  far cdecl vsa_set_display_start( unsigned, unsigned );
  17. extern unsigned  far cdecl vsa_get_display_start( unsigned far *,
  18.                                                         unsigned far * );
  19. extern unsigned  far cdecl vsa_init( unsigned );
  20. extern void far cdecl vsa_set_color( unsigned );
  21. extern void far cdecl vsa_set_text_color( unsigned );
  22. extern void far cdecl vsa_set_text_cursor_mode( unsigned );
  23. extern void far cdecl vsa_set_text_cursor( int, int);
  24. extern void far cdecl vsa_get_text_cursor( int far *, int far *);
  25. extern void far cdecl vsa_set_text_scale(float,float);
  26. extern void far cdecl vsa_set_viewport( int, int, int, int);
  27. extern void far cdecl vsa_set_clip_mode(  unsigned );
  28. extern void far cdecl vsa_write_string( int, int, int, char far * );
  29. extern void far cdecl vsa_write_string_alt( char far * );
  30. extern void far cdecl vsa_read_color_register( unsigned, unsigned char far *,
  31.                                  unsigned char far *, unsigned char far *);
  32. extern void far cdecl vsa_write_color_register( unsigned, unsigned char,
  33.                                  unsigned char, unsigned char );
  34. extern void far cdecl vsa_read_color_block( unsigned, unsigned,
  35.                                  unsigned char far * );
  36. extern void far cdecl vsa_write_color_block( unsigned, unsigned,
  37.                                  unsigned char far * );
  38. extern void far cdecl vsa_move_to( int, int);
  39. extern void far cdecl vsa_set_pixel( int, int);
  40. extern unsigned far cdecl vsa_get_pixel( int, int);
  41. extern void far cdecl vsa_line_to( int, int);
  42. extern void far cdecl vsa_triangle_fill( int, int, int, int, int, int);
  43. extern void far cdecl vsa_rect_fill( int, int);
  44. extern void far cdecl vsa_rect( int, int);
  45. extern unsigned long far cdecl vsa_image_size( int, int, int, int);
  46. extern void far cdecl vsa_get_image( int, int, int, int,unsigned char huge * );
  47. extern void far cdecl vsa_put_image( int, int,unsigned char huge *, unsigned);
  48. extern void far cdecl vsa_h_line( int, int, int);
  49. extern void far cdecl vsa_v_line( int, int, int);
  50. extern void far cdecl vsa_raster_line( int, int, int, unsigned char far *);
  51. extern void far cdecl vsa_get_raster_line( int, int, int,unsigned char far *);
  52. extern void far cdecl vsa_gouraud_line( int, int, int, int, int);
  53. extern void far cdecl vsa_shaded_triangle( int, int, int, int, int, int,
  54.                                                                                      int, int, int);
  55. extern void far cdecl vsa_wait_hsync( void );
  56. extern void far cdecl vsa_wait_vsync( void );
  57. extern void far cdecl vsa_about( void );
  58.  
  59. /*..........................................................................*/
  60. /*                    External Parameter Declarations                       */
  61. /*..........................................................................*/
  62. extern unsigned far XResolution, far YResolution;
  63. extern unsigned far XCharResolution, far YCharResolution;
  64. extern unsigned char far XCharSize, far YCharSize;
  65. extern unsigned char far BitsPerPixel;
  66. extern int far XLeft, far XRight, far YTop, far YBottom;
  67. extern float far Text_X_Scale, far Text_Y_Scale;
  68.  
  69.  
  70.